Skip to content

Conversation

@BenjaminBossan
Copy link
Member

@BenjaminBossan BenjaminBossan commented Oct 20, 2025

Currently, adapter deletion raises an error with DeLoRA. The reason is that the dropout module is called module_dropout, i.e. the prefix "delora" is not part of the name, which is required for proper working. This PR renames the attribute to delora_dropout.

The reason why this was not caught is because the corresponding test was not updated to include DeLoRA. The test was thus also changed.

I also noticed that the error message for save merging is different from other PEFT methods. In general, that would be okay, but it means we would have to add a special case for unit testing this, so I consolidated the error message.

Note: I came across these issues in #2846 but I wanted to fix it in a separate PR, as #2846 is probably not going to make it into the next PEFT release.

Currently, adapter deletion raises an error with DeLoRA. The reason is
that the dropout module is called module_dropout, i.e. the prefix
"delora" is not part of the name, which is required for proper working.
This PR renames the attribute to delora_dropout.

The reason why this was not caught is because the corresponding test was
not updated to include DeLoRA. The test was thus also changed.

Note: I came across this issue in huggingface#2846 but I wanted to fix it in a
separate PR, as huggingface#2846 is probably not going to make it into the next
PEFT release.
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@BenjaminBossan
Copy link
Member Author

FYI @mwbini

@mwbini
Copy link
Contributor

mwbini commented Oct 20, 2025

Thanks for fixing these. I also noticed the methods constraints in delora.md were missing (looking at other methods' docs) and updated this in PR #2854

@BenjaminBossan BenjaminBossan merged commit 5311e87 into huggingface:main Oct 22, 2025
31 of 37 checks passed
@BenjaminBossan BenjaminBossan deleted the fix-delora-adapter-deletion-issue branch October 22, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants